package com.wenyu.wenyuyuedu.utils;

/**
 *
 * app的配置常量
 * Created by weihu-pc on 2015/11/16.
 */
public class AppConfig {

//    public static final String DOWNLOAD_ROOT_DIR = "";
//    public static final String DOWNLOAD_IMAGE_DIR = "";
//    public static final String DOWNLOAD_FILE_DIR = "";
//    public static final String CACHE_DIR = "";
//    public static final String DB_DIR = "";
    /**
     * 标记网络为wifi状态
     */
    public static final int NETWORK_WIFI = 1;

    /**
     * 标记网络为Gprs状态
     */
    public static final int NETWORK_GPRS = 2;

    /**
     * 标记无网状态
     */
    public static final int NETWORK_NONE = 0;
    /**
     * 网络请求缓存文件名
     * */
    public static final String RESPONSE_CACHE = "HttpCache";

    /**
     * 网络请求缓存
     * */
    public static final long RESPONSE_CACHE_SIZE = 1024*1024*10;
    /**
     * 网络连接超时时间
     * */
    public static final long HTTP_CONNECT_TIMEOUT = 15 * 1000;
    /**
     * 网络读取超时时间
     * */
    public static final long HTTP_READ_TIMEOUT = 30* 1000;

    /**  UI设计的基准宽度. */
    public static int UI_WIDTH = 720;

    /**  UI设计的基准高度. */
    public static int UI_HEIGHT = 1080;

    /** 默认 SharePreferences文件名. */
    public static String SHARED_PATH = "app_share";

    /** 默认下载文件地址. */
    public static String DOWNLOAD_ROOT_DIR = "download";

    /** 默认下载图片文件地址. */
    public static String DOWNLOAD_IMAGE_DIR = "images";

    /** 默认下载文件地址. */
    public static String DOWNLOAD_FILE_DIR = "files";

    /** APP缓存目录. */
    public static String CACHE_DIR = "cache";

    /** DB目录. */
    public static String DB_DIR = "db";

    /** 缓存大小  单位10M. */
    public static int MAX_CACHE_SIZE_INBYTES = 10*1024*1024;

    /** The Constant CONNECTEXCEPTION. */
    public static String CONNECT_EXCEPTION = "无法连接到网络";

    /** The Constant UNKNOWNHOSTEXCEPTION. */
    public static String UNKNOWN_HOST_EXCEPTION = "连接远程地址失败";

    /** The Constant SOCKETEXCEPTION. */
    public static String SOCKET_EXCEPTION = "网络连接出错，请重试";

    /** The Constant SOCKETTIMEOUTEXCEPTION. */
    public static String SOCKET_TIMEOUT_EXCEPTION = "连接超时，请重试";

    /** The Constant NULLPOINTEREXCEPTION. */
    public static String NULL_POINTER_EXCEPTION = "抱歉，远程服务出错了";

    /** The Constant NULLMESSAGEEXCEPTION. */
    public static String NULL_MESSAGE_EXCEPTION = "抱歉，程序出错了";

    /** The Constant CLIENTPROTOCOLEXCEPTION. */
    public static String CLIENTP_ROTOCOL_EXCEPTION = "Http请求参数错误";

    /** 参数个数不够. */
    public static String MISSING_PARAMETERS = "参数没有包含足够的值";

    /** The Constant REMOTESERVICEEXCEPTION. */
    public static String REMOTE_SERVICE_EXCEPTION = "抱歉，远程服务出错了";

    /** 页面未找到. */
    public static String NOT_FOUND_EXCEPTION = "页面未找到";

    /** 其他异常. */
    public static String UNTREATED_EXCEPTION = "未处理的异常";
}
